/*
 * @Description:
 * @Version: 1.0
 * @Autor: gaoluo
 * @Date: 2022-04-27 20:59:51
 * @LastEditors: gaoluo
 * @LastEditTime: 2022-07-08 09:34:14
 * @FilePath: /vue3.0-vite-ts-xiaotuxian/src/main.ts
 */
import { createApp } from "vue";
import App from "./App.vue";
import router from "./router/index";
import { createPinia } from "pinia";
import piniaPersist from "pinia-plugin-persist";

declare module "@vue/runtime-core" {
  interface ComponentCustomProperties {
    $aaa: string;
  }
}

const app = createApp(App);

app.config.globalProperties.$aaa = "AAA";

const pinia = createPinia();
pinia.use(piniaPersist);

app.use(router).use(pinia).mount("#app");
